package com.kaifamiao.month04.day21.homework;

public class Circle extends Shape {

    private double radius;
    private final static String type = "圆";
    private final double pi = 3.1415936;


    public Circle(double radius) {
        super(type);
        this.radius = radius;
    }

    @Override
    public void calculate() {
        super.area = pi * radius * radius;
    }

    public void show() {
        System.out.println(type + "的半径是：" + radius);
        super.show();
    }


}
